﻿using Com.ZX.ViewModel;

namespace Com.ZX.View
{
    public interface IView
    {
        /// <summary>
        /// 状态改变
        /// </summary>
        event StateChangeEvent StateChanged;
        /// <summary>
        /// 绑定上下文
        /// </summary>
        BaseViewModel BindContext { get; set; }
        /// <summary>
        /// 获取对应UIType
        /// </summary>
        /// <returns></returns>
        EnumUIType GetUIType();
        /// <summary>
        /// 释放资源
        /// </summary>
        void Release();
    }
}
